package com.ruoyi.dwzzzy.service.impl;

import com.ruoyi.dwzzzy.domain.SourceFile;
import com.ruoyi.dwzzzy.mapper.SourceFileMapper;
import com.ruoyi.dwzzzy.service.SourceFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description :
 * @auther :   zhanvie
 * @Date :   2021-03-22
 */
@Service
public class SourceFileServiceImpl implements SourceFileService {

    @Resource
    private SourceFileMapper sfm;

    @Override
    public void save(SourceFile sourceFile) {
        sfm.save(sourceFile);
    }

    @Override
    public List<SourceFile> getSourceFiles(SourceFile sourceFile) {
        return sfm.getSourceList(sourceFile);
    }

    @Override
    public SourceFile getFileByid(Long id) {
        return sfm.queryOne(id);
    }
}
